package com.lj.bruth.dao;
import com.lj.bruth.model.*;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao extends JpaRepository<User,Long> {

    @Query(nativeQuery = true,value = "select t.* from t_order t left join t_order_item n on t.order_id = n.order_id")
    List<User> findTongguoId();
    // List<User> queryUser();
}
